<template>
	<div id="listInitiate">
		<el-form :inline="true" :model="formInline" class="demo-form-inline">
			<el-form-item label>
				<el-input v-model="formInline.user" placeholder="搜索关键词"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button type="primary" @click="onSubmit">查询</el-button>
				<el-button type="primary" @click="onSubmit">发起</el-button>
			</el-form-item>
		</el-form>
		<el-table :data="tableData" style="width: 100%">
			<el-table-column prop="Title" label="标题" fixed width="350">
				<template slot-scope="scope">
					<el-link :underline="false">{{scope.row.Title}}</el-link>
				</template>
			</el-table-column>
			<el-table-column prop="StarterName" label="发起人" width="150"></el-table-column>
			<el-table-column prop="ADT" label="发起部门" width="150"></el-table-column>
			<el-table-column prop="RDT" label="当前节点" width="150"></el-table-column>
			<el-table-column prop="NodeName" label="到达时间" width="150"></el-table-column>
			<el-table-column prop="NodeName" label="当前处理人" width="150"></el-table-column>
			<el-table-column label="操作" width="150">
				<template slot-scope="scope">
					<el-button @click="handleClick(scope.row)" type="text" size="small">轨迹</el-button>
					<el-button type="text" size="small">撤销</el-button>
					<el-button type="text" size="small">催办</el-button>
				</template>
			</el-table-column>
		</el-table>
	</div>
</template>

<script>
export default {
	name: "listInitiate",

	data() {
		return {
			blogTitle: "",
			formInline: {
				user: "",
				region: ""
			},
			tableData: []
		};
	},

	beforeCreate() {},

	created() {
        this.loadData();
    },

	methods: {
        // 获取数据
		loadData() {
			let handler = new this.HttpHandler("BP.WF.HttpHandler.WF");
			let data = handler.DoMethodReturnString("Runing_Init");
			console.log(data);
            // this.filterData(JSON.parse(data));
            this.tableData = JSON.parse(data);
        },
        
		onSubmit() {}
	},

	//监听
	computed: {},

	components: {},

	//监听后执行动作
	watch: {}
};
</script>

<style lang="less" scoped>
</style>